<!doctype html>
<html class="no-js" lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  <title></title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

  <link rel="manifest" href="./site.webmanifest">
  <link rel="apple-touch-icon" href="./icon.png">
  <!-- Place favicon.ico in the root directory -->

  <link rel="stylesheet" href="./static/css/normalize.css">
  <link rel="stylesheet" href="./static/css/main.css">
  <link rel="stylesheet" href="./static/assets/css/zeroModal.css">
  <link rel="stylesheet" href="./static/css/index.css">
</head>

<body>
  <!--[if lte IE 9]>
    <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
  <![endif]-->

  <!-- Add your site or application content here -->

  <div class="header">
    <div class="header-container">
      <div class="title" onclick="goUrl('./index.html')">
        <img src="./static/img/title.png" style="height: 65px;">
      </div>
      <ul class="info">
        <li id="header-username">
          <img src="./static/img/user.png" alt="">
          <a id="header-username" href="./login.html">登录</a>
        </li>
        <li>
          <img src="./static/img/config.png" alt="">
          <a href="./views/settings.html">设置</a>
        </li>
        <li>
          <img src="./static/img/message.png" alt="">
          <a href="./views/message.html">站内信</a>
        </li>
        <li>
          <a class="exit" onclick="doLogout()">退出</a>
        </li>
      </ul>
    </div>
  </div>

  <div class="main">
    <div class="enter">
      <div class="card" onclick="goUrl('./views/company.html')">
        <img src="./static/img/xmsb.png" alt="">
        <h3>企业基本信息</h3>
      </div>

      <div class="project card" onclick="gotoCapitallist()">
        <img src="./static/img/yxzj.png" alt="">
        <!-- <h3>专项资金</h3> -->
        <h3>项目申报</h3>
      </div>

      <div class="card" onclick="goUrl('./views/regulation.html')">
        <img src="./static/img/flfg.png" alt="">
        <h3>政策法规</h3>
      </div>
    </div>

  </div>

 <div class="footer">
    <p>作者</p>
    <p>地址：</p>
    <p>邮政编码：250000 技术支持：</p>
  </div>

    <script src="./static/js/modernizr-3.6.0.min.js"></script>
    <script src="./static/js/jquery-1.12.min.js"></script>
    <script src="./static/js/plugins.js"></script>
    <script src="./static/assets/scripts/zeroModal.min.js"></script>
    <script src="./static/js/main.js"></script>

    <!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
    <script>
      window.ga = function () {
        ga.q.push(arguments)
      };
      ga.q = [];
      ga.l = +new Date;
      ga('create', 'UA-XXXXX-Y', 'auto');
      ga('send', 'pageview')
    </script>
    <script>
      var global_userinfo = null;
      (function init() {
        setUserInfoHeader(function(userinfo){
          global_userinfo = userinfo;
        });
      })();
      
      function gotoCapitallist(){
    	   request({
    	        url: API_DOMAIN + 'user/culture/cultureDeclarCorporate/loadMyCultureDeclarCorporate',
    	        data: {},
    	        success: function (result) {
                console.log(result);
                if(result.statusCode == 200){
                  if (1==result.data.cultureDeclarCorporate.reviewFinalResult) {
                    goUrl('./views/capitallist.html');
                    //zeroModal.error("企业信息未审核通过，不能进行项目申报");
                    return;
                  } else {
                    zeroModal.error("企业信息未审核通过，不能进行项目申报");
                    return;
                  }
                } else {
                  zeroModal.error("企业信息尚未提交，请先提交企业信息");
                }

    	        },
    	        error: function (err) {
    	          zeroModal.error(err);
    	        }
    	      })
    	      return false;
    	    }
    </script>
</body>

</html>